home *** CD-ROM | disk | FTP | other *** search
/ C++ für Kids / C++ for kids.iso / Buch / Zins1.h < prev    next >
C/C++ Source or Header  |  1998-12-31  |  2KB  |  53 lines

  1. //---------------------------------------------------------------------------
  2. #ifndef Zins1H
  3. #define Zins1H
  4. //---------------------------------------------------------------------------
  5. #include <vcl\Classes.hpp>
  6. #include <vcl\Controls.hpp>
  7. #include <vcl\StdCtrls.hpp>
  8. #include <vcl\Forms.hpp>
  9. #include <vcl\ExtCtrls.hpp>
  10. //---------------------------------------------------------------------------
  11.  
  12. class TZins : public TObject
  13. {
  14. public:
  15.   float Kapital;
  16.   float Prozent;
  17.   float Zinsen;
  18.   void __fastcall SetKapital (String Text);
  19.   void __fastcall SetProzent (String Text);
  20.   void __fastcall SetZinsen  (String Text);
  21.   String __fastcall CalcKapital (void);
  22.   String __fastcall CalcProzent (void);
  23.   String __fastcall CalcZinsen  (void);
  24.   __fastcall TZins (void);
  25. };
  26.  
  27. class TForm1 : public TForm
  28. {
  29. __published:    // IDE-verwaltete Komponenten
  30.     TPanel *Panel1;
  31.     TPanel *Panel2;
  32.     TPanel *Panel3;
  33.     TEdit *Edit1;
  34.     TEdit *Edit2;
  35.     TEdit *Edit3;
  36.     TButton *Button1;
  37.     TButton *Button2;
  38.     TLabel *Label1;
  39.     void __fastcall FormCreate(TObject *Sender);
  40.     void __fastcall Button1Click(TObject *Sender);
  41.     void __fastcall Button2Click(TObject *Sender);
  42. private:    // Benutzer-Deklarationen
  43.     TZins *Zins1;
  44.     int Modus;
  45.     void __fastcall SetZero (void);
  46. public:        // Benutzer-Deklarationen
  47.     __fastcall TForm1(TComponent* Owner);
  48. };
  49. //---------------------------------------------------------------------------
  50. extern TForm1 *Form1;
  51. //---------------------------------------------------------------------------
  52. #endif
  53.